<template>
  <div>
    <van-card
      v-for="v in localCar"
      :key="v.id"
      :num="v.count"
      :price="v.price.toFixed(2)"
      :desc="v.desc"
      :title="v.title"
      :thumb="v.url"
    />


    <van-submit-bar :price="tatalPrice * 100" button-text="提交订单">
      <van-checkbox>全选</van-checkbox>
    </van-submit-bar>
  </div>
</template>

<script>
export default {
  name: 'car',
  computed: {
    localCar() {
      return this.$store.state.localCar
    },
    tatalPrice() {
      return this.$store.getters.tatalPrice
    }
  }
}
</script>